package io.itit.ecp.admin.provide.action.resp.miniprogram;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@Accessors(chain = true)
public class MiniDeviceInfoCategoryResp implements Serializable {

    @ApiModelProperty("设备总数")
    private Integer devicesNum;

    @ApiModelProperty("在线设备")
    private Integer onLineDevicesNum;

    @ApiModelProperty("离线设备")
    private Integer outLineDevicesNum;

    /**
     * 设备分类列表
     */
    private List<DeviceInfoCategory> devices;

    /**
     * 计量设备分类列表
     */
    private List<DeviceInfoCategory> meterDevices;


    @Data
    @Accessors(chain = true)
    public static class DeviceInfoCategory implements Serializable {

        @ApiModelProperty("名称")
        private String labelName;

        @ApiModelProperty("在线设备")
        private Integer onLineDevicesNum;

        @ApiModelProperty("离线设备")
        private Integer outLineDevicesNum;

        @ApiModelProperty("电表类型总功率")
        private BigDecimal totalPower;
    }
}
